package com.spzx.product.api.factory;

import com.spzx.product.api.RemoteItemService;
import com.spzx.product.api.domain.VO.ItemVO;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class RemoteItemServiceFallbackFactory implements FallbackFactory<RemoteItemService> {
    @Override
    public RemoteItemService create(Throwable cause) {
        return new RemoteItemService() {
            @Override
            public ItemVO itemById(String s, Long id) {
                return null;
            }
        };
    }
}
